<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   	<%@ include file="/page/commen/common.jsp" %>
    <title>忘记密码</title>
	<script type="text/javascript">	
$(document).ready(function(){
			$.formValidator.initConfig({formid:"CustomInfoForm",onerror:function(msg){document.getElementById(
				"errormsg").innerHTML="验证未通过，具体错误请看错误提示!!";},onsuccess:function(){return true;}});
				
			$("#mailAddress").formValidator({onshow:"输入您注册的邮箱地址获取登录信息",onfocus:"需输入合法且已注册的邮箱地址",oncorrect:"您输入了合法且已注册的邮箱地址"})
				.inputValidator({min:1,onerror:"邮箱地址不能为空"})
				.regexValidator({regexp:"email",datatype:"enum",onerror:"输入的邮箱地址格式不正确"})
				.inputValidator({max:50,onerror:"邮箱地址不能超过50个字"})
				.ajaxValidator({
					type : "post",
					url : "validateCompanyMail.do",
					datatype : "json",
					success: function(data){
						if(data == "1"){
							return true;
						}else{
							return false;
						}
					},
					buttons : $("#button"),
					error : function(){Ext.Msg.alert("提示","服务器没有返回数据，可能服务器忙，请重试");},
					onerror : "未找到输入的邮箱地址，请更换邮箱地址",
					onwait : "正在对邮箱地址进行合法性校验，请稍候..."
				});
				
			 var editStatus=$("#editStatus").val();
			 if(editStatus=="1")Ext.Msg.alert("提示","登录信息已经发送到你的邮箱,请查阅");
			 else if(editStatus=="0")Ext.Msg.alert("提示","获取登录信息出错");
		    });
	
	        
	</script>
  </head>
  
  <body class="ContentBody">
  	<%@ include file="/page/commen/top.jsp" %>
		<div class="left">	
				 <p class="description registerImg">忘记密码</p>
		 <div class="inputContent">
		 <p class="title">输入邮箱获取密码</p>
    <form action="doSendPassword.do" method="post"   name="CustomInfoForm" id="CustomInfoForm">
    <input id="editStatus" value="<s:property value='editStatues'/>" type="hidden"/>
    	<div class="MainDiv">
    		<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
				<tr>
			      	<th class="tablestyle_title"></th>
			  	</tr>
			  	<tr>
			  		<td class="CPanel">
			  			<table class="regiseter">
			  				<tr>
												<td colspan="3" align="center" style="border: 0px">
													 <div class="opdiv" style="   font-size: 12px;height: auto; padding: 5px; text-align: left;background-color: #FFF2E9">
													 <span id="errormsg"></span>
													 </div>
												</td>
											</tr>
			  							    <tr>
			  									<td class="title">公司注册邮箱:</td>
											    <td ><input class="inputText"  id="mailAddress" name="customInfoDTO.mailAddress" maxlength="50"></input>
											     <span class="red">*</span>
											    </td>
			  									<td align="left"  class="tip"><div id="mailAddressTip"></div></td>
			  								</tr>
			  				<tr>
			  					<td colspan="3" align="center" >
			  						<input type="submit" name="Submit" value="获取密码" class="commentBut"/>　
			  					</td>
			  				</tr>
			  			</table>
			  		</td>
			  	</tr>
			</table>
    	</div>
    </form>
    </div>
  </div>
  
  	<div id="right">
	<%@ include file="/page/commen/login.jsp" %>	
	<%@ include file="/page/commen/download.jsp" %>	
	<%@ include file="/page/commen/contactUs.jsp" %>
		</div>	
			<%@ include file="/page/commen/foot.jsp" %>	
  </body>
</html>
